<template>
	<view class="wrapper">
		<uni-nav-bar backgroundColor="#f3f3f3" left-icon="back" title="附近的人" @clickLeft="$back()">
			<view class="center right_screen" slot="right">
				<image src="../../static/search333.png" mode="aspectFill" class="search_img"></image>
				<picker :range="screenList">
					<view class="f30 c33 nowrap">筛选</view>
				</picker>
			</view>
		</uni-nav-bar>
		<view class="top_nav center">
			<view class="flex f30" :class="{active:neartype==0}" @tap="neartype=0">
				附近的人
			</view>
			<view class="flex f30" :class="{active:neartype==1}" @tap="neartype=1">
				地址
			</view>
		</view>
		<map  v-if="neartype==1"></map>
		<view class="main" v-if="neartype==0">
			<view class="user_box" @tap="$open('../friend/friend')">
				<dimg src="../../static/delet/acatar.png" class="user_activity"></dimg>
				<view class="user_name f32">
					哈哈哈
				</view>
				<view class="user_info center">
					<dimg src="../../static/delet/acatar.png" class="user_avatar"></dimg>
					<view class="user_main flex">
						<view class="f28">
							1.66 m
						</view>
						<view class="f22">
							01-02  17:30
						</view>
					</view>
				</view>
			</view>
			<view class="user_box" @tap="$open('../friend/friend')">
				<dimg src="../../static/delet/acatar.png" class="user_activity"></dimg>
				<view class="user_name f32">
					哈哈哈
				</view>
				<view class="user_info center">
					<dimg src="../../static/delet/acatar.png" class="user_avatar"></dimg>
					<view class="user_main flex">
						<view class="f28">
							1.66 m
						</view>
						<view class="f22">
							01-02  17:30
						</view>
					</view>
				</view>
			</view>
			<view class="user_box" @tap="$open('../friend/friend')">
				<dimg src="../../static/delet/acatar.png" class="user_activity"></dimg>
				<view class="user_name f32">
					哈哈哈
				</view>
				<view class="user_info center">
					<dimg src="../../static/delet/acatar.png" class="user_avatar"></dimg>
					<view class="user_main flex">
						<view class="f28">
							1.66 m
						</view>
						<view class="f22">
							01-02  17:30
						</view>
					</view>
				</view>
			</view>
			<view class="user_box" @tap="$open('../friend/friend')">
				<dimg src="../../static/delet/acatar.png" class="user_activity"></dimg>
				<view class="user_name f32">
					哈哈哈
				</view>
				<view class="user_info center">
					<dimg src="../../static/delet/acatar.png" class="user_avatar"></dimg>
					<view class="user_main flex">
						<view class="f28">
							1.66 m
						</view>
						<view class="f22">
							01-02  17:30
						</view>
					</view>
				</view>
			</view>
			<view class="user_box" @tap="$open('../friend/friend')">
				<dimg src="../../static/delet/acatar.png" class="user_activity"></dimg>
				<view class="user_name f32">
					哈哈哈
				</view>
				<view class="user_info center">
					<dimg src="../../static/delet/acatar.png" class="user_avatar"></dimg>
					<view class="user_main flex">
						<view class="f28">
							1.66 m
						</view>
						<view class="f22">
							01-02  17:30
						</view>
					</view>
				</view>
			</view>
			<view class="user_box" @tap="$open('../friend/friend')">
				<dimg src="../../static/delet/acatar.png" class="user_activity"></dimg>
				<view class="user_name f32">
					哈哈哈
				</view>
				<view class="user_info center">
					<dimg src="../../static/delet/acatar.png" class="user_avatar"></dimg>
					<view class="user_main flex">
						<view class="f28">
							1.66 m
						</view>
						<view class="f22">
							01-02  17:30
						</view>
					</view>
				</view>
			</view>
			<view class="user_box" @tap="$open('../friend/friend')">
				<dimg src="../../static/delet/acatar.png" class="user_activity"></dimg>
				<view class="user_name f32">
					哈哈哈
				</view>
				<view class="user_info center">
					<dimg src="../../static/delet/acatar.png" class="user_avatar"></dimg>
					<view class="user_main flex">
						<view class="f28">
							1.66 m
						</view>
						<view class="f22">
							01-02  17:30
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
import uniNavBar from '@/components/uni-nav-bar/uni-nav-bar.vue';
export default {
	data() {
		return {
			neartype:0,
			screenList:[
				'不限性别','只看男','只看女'
			]
		};
	},
	onShow() {},
	onLoad() {},
	methods: {},
	components: { uniNavBar }
};
</script>

<style lang="scss">
map{
	width: 100%;
	height: calc(100% - 44px);
}
.top_nav{
	position: fixed;
	left: 0;
	width: 100%;
	top: calc(44px + var(--status-bar-height));
	height: 90rpx;
	z-index: 998;
	background: #f3f3f3;
	view{
		height: 90rpx;
		line-height: 90rpx;
		text-align: center;
	}
	.active{
		border-bottom: 3rpx solid #FF3543;
	}
}
.main{
	padding-top: 100rpx;
}
.user_box{
		width: 330rpx;
		background: #FFFFFF;
		border-radius: 8rpx;
		overflow: hidden;
		margin: 15rpx;
		padding-bottom: 25rpx;
		display: inline-block;
		.f28{
			margin-bottom: 10rpx;
		}
		.user_avatar{
			width:76rpx;
			height:75rpx;
			border-radius:50%;
			margin: 0 23rpx 0 20rpx;
			border-radius: 50%;
			overflow: hidden;
		}
		.user_name{
			padding: 25rpx 22rpx 20rpx;
		}
		.user_activity{
			width:330rpx;
			height:330rpx;
		}
	}
.right_screen {
	image {
		width: 32rpx;
		height: 32rpx;
		margin-right: 20rpx;
	}
}
page{
	background: #f3f3f3;
	padding:0 15rpx;
}
</style>
